package cn.iocoder.yudao.module.hqchart.convert;

import cn.iocoder.yudao.module.data.entity.dto.StockTrendsRespDTO;
import cn.iocoder.yudao.module.hqchart.controller.vo.HQChartFenShiRespVO;
import org.mapstruct.*;
import org.mapstruct.factory.Mappers;

/**
 * <p>
 *
 * </p>
 *
 * @author pokbrin
 * @date 2023-07-21 15:25
 */
@Mapper(componentModel = MappingConstants.ComponentModel.SPRING, unmappedTargetPolicy = ReportingPolicy.IGNORE, builder = @Builder(disableBuilder = true))
public interface EastMoneyConvert {
    EastMoneyConvert INSTANT = Mappers.getMapper(EastMoneyConvert.class);

    @Mapping(source = "dto.trends", target = "minute")
    @Mapping(source = "trendsTotal", target = "minuteCount")
    @Mapping(source = "code", target = "symbol")
    HQChartFenShiRespVO eastMoneyTrends2HQChartVO(StockTrendsRespDTO dto);


}
